package com.example.springbootproject.mianshi.singleton;

public class Singleton04 {

    private static Singleton04 INSTANCE;

    public static Singleton04 getInstance() throws InterruptedException {
        if (INSTANCE == null){
            Thread.sleep(1000);
            INSTANCE = new Singleton04();
        }
        return INSTANCE;
    }

    private Singleton04(){

    }

}
